<script lang="ts" setup>
  import useModeModalHandler from '@/hooks/arco/useModeModalHandler';
  import Modal from './modal.vue';

  const handler = useModeModalHandler();
</script>

<template>
  <div>
    <a-button @click="handler.showAdd">添加</a-button>
    <a-button @click="handler.showEdit({ id: 1 })">编辑</a-button>
    <a-button @click="handler.showDetail({ id: 1 })">详情</a-button>
    <Modal v-bind="handler.bindProps" />
  </div>
</template>

<style></style>
